#pragma once
#ifndef _DATA_ANALYSIS_TASK_H_
#define _DATA_ANALYSIS_TASK_H_
#ifdef WIN32
#pragma execution_character_set("utf-8")
#endif // WIN32

#include <QObject>
#include "BaseThread.h"

class DataAnalysisTask : public BaseThread {
	
	Q_OBJECT

signals:
	
	void processFinished(const MyError& e);

public:
	
	DataAnalysisTask(cv::Mat& data, QObject* parent = nullptr);

	~DataAnalysisTask();

	/// <summary>
	/// 获取执行过程中发生的错误信息
	/// </summary>
	/// <returns></returns>
	const MyError& getError() const;

protected:

	void run();

private:

	//原始数据
	cv::Mat m_originData;

	//线程运行过程中的错误类型
	MyError m_error;
};

#endif  //!_DATA_ANALYSIS_TASK_H_

